﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using DevComponents.DotNetBar;
using System.Media;
using ShadowPanel;

namespace PandaSpeech
{
    public partial class PandaSpeech : Office2007Form
    {
        const int WIDTHBEFORE = 94;
        const int HEIGHTBEFORE = 75;
        const int WIDTHAFTER = 124;
        const int HEIGHTAFTER = 105;
        private System.Media.SoundPlayer player=new System.Media.SoundPlayer();
        public PandaSpeech()
        {
            InitializeComponent();

        }

        //Mouse Hover
        private void pictureBox1_MouseHover(object sender, EventArgs e)
        {
            this.pictureBox1.Width = WIDTHAFTER;
            this.pictureBox1.Height = HEIGHTAFTER;
            this.pictureBox1.Location = new Point(10, 11);
            this.pictureBox1.conSombra = true;
            this.pictureBox1.BringToFront();
        }
        
        private void pictureBox2_MouseHover(object sender, EventArgs e)
        {
            this.pictureBox2.Width = WIDTHAFTER;
            this.pictureBox2.Height = HEIGHTAFTER;
            this.pictureBox2.Location = new Point(125, 9);
            this.pictureBox2.conSombra = true;
            this.pictureBox2.BringToFront();

        }

        private void pictureBox3_MouseHover(object sender, EventArgs e)
        {
            this.pictureBox3.Width = WIDTHAFTER;
            this.pictureBox3.Height = HEIGHTAFTER;
            this.pictureBox3.Location = new Point(242, 17);
        }

        private void pictureBox4_MouseHover(object sender, EventArgs e)
        {
            this.pictureBox4.Width = WIDTHAFTER;
            this.pictureBox4.Height = HEIGHTAFTER;
            this.pictureBox4.Location = new Point(18, 108);
        }

        private void pictureBox6_MouseHover(object sender, EventArgs e)
        {
            this.pictureBox6.Width = WIDTHAFTER;
            this.pictureBox6.Height = HEIGHTAFTER;
            this.pictureBox6.Location = new Point(133, 108);
        }

        private void pictureBox5_MouseHover(object sender, EventArgs e)
        {
            this.pictureBox5.Width = WIDTHAFTER;
            this.pictureBox5.Height = HEIGHTAFTER;
            this.pictureBox5.Location = new Point(242, 108);
        }

        private void pictureBox7_MouseHover(object sender, EventArgs e)
        {
            this.pictureBox7.Width = WIDTHAFTER;
            this.pictureBox7.Height = HEIGHTAFTER;
            this.pictureBox7.Location = new Point(18, 199);
        }

        private void pictureBox8_MouseHover(object sender, EventArgs e)
        {
            this.pictureBox8.Width = WIDTHAFTER;
            this.pictureBox8.Height = HEIGHTAFTER;
            this.pictureBox8.Location = new Point(133, 199);
        }

        private void pictureBox9_MouseHover(object sender, EventArgs e)
        {
            this.pictureBox9.Width = WIDTHAFTER;
            this.pictureBox9.Height = HEIGHTAFTER;
            this.pictureBox9.Location = new Point(242, 199);
        }

        private void pictureBox10_MouseHover(object sender, EventArgs e)
        {
            this.pictureBox10.Width = WIDTHAFTER;
            this.pictureBox10.Height = HEIGHTAFTER;
            this.pictureBox10.Location = new Point(18, 289);
        }

        private void pictureBox11_MouseHover(object sender, EventArgs e)
        {
            this.pictureBox11.Width = WIDTHAFTER;
            this.pictureBox11.Height = HEIGHTAFTER;
            this.pictureBox11.Location = new Point(133, 289);
        }

        private void pictureBox12_MouseHover(object sender, EventArgs e)
        {
            this.pictureBox12.Width = WIDTHAFTER;
            this.pictureBox12.Height = HEIGHTAFTER;
            this.pictureBox12.Location = new Point(242, 289);
        }

        private void pictureBox13_MouseHover(object sender, EventArgs e)
        {
            this.pictureBox13.Width = WIDTHAFTER;
            this.pictureBox13.Height = HEIGHTAFTER;
            this.pictureBox13.Location = new Point(18, 381);
        }

        private void pictureBox14_MouseHover(object sender, EventArgs e)
        {
            this.pictureBox14.Width = WIDTHAFTER;
            this.pictureBox14.Height = HEIGHTAFTER;
            this.pictureBox14.Location = new Point(133, 381);
        }

        private void pictureBox15_MouseHover(object sender, EventArgs e)
        {
            this.pictureBox15.Width = WIDTHAFTER;
            this.pictureBox15.Height = HEIGHTAFTER;
            this.pictureBox15.Location = new Point(242, 381);
        }

        //Mouse Leave
        private void pictureBox1_MouseLeave(object sender, EventArgs e)
        {
            this.pictureBox1.Width = WIDTHBEFORE;
            this.pictureBox1.Height = HEIGHTBEFORE;
            this.pictureBox1.Location = new Point(20, 19);
            this.pictureBox1.conSombra = false;
        }

        private void pictureBox2_MouseLeave(object sender, EventArgs e)
        {
            this.pictureBox2.Width = WIDTHBEFORE;
            this.pictureBox2.Height = HEIGHTBEFORE;
            this.pictureBox2.Location = new Point(135, 19);
            this.pictureBox1.conSombra = false;
        }

        private void pictureBox3_MouseLeave(object sender, EventArgs e)
        {
            this.pictureBox3.Width = WIDTHBEFORE;
            this.pictureBox3.Height = HEIGHTBEFORE;
            this.pictureBox3.Location = new Point(244, 19);
        }

        private void pictureBox4_MouseLeave(object sender, EventArgs e)
        {
            this.pictureBox4.Width = WIDTHBEFORE;
            this.pictureBox4.Height = HEIGHTBEFORE;
            this.pictureBox4.Location = new Point(20, 110);
        }

        private void pictureBox6_MouseLeave(object sender, EventArgs e)
        {
            this.pictureBox6.Width = WIDTHBEFORE;
            this.pictureBox6.Height = HEIGHTBEFORE;
            this.pictureBox6.Location = new Point(135, 110);
        }

        private void pictureBox5_MouseLeave(object sender, EventArgs e)
        {
            this.pictureBox5.Width = WIDTHBEFORE;
            this.pictureBox5.Height = HEIGHTBEFORE;
            this.pictureBox5.Location = new Point(244, 110);
        }

        private void pictureBox7_MouseLeave(object sender, EventArgs e)
        {
            this.pictureBox7.Width = WIDTHBEFORE;
            this.pictureBox7.Height = HEIGHTBEFORE;
            this.pictureBox7.Location = new Point(20, 201);
        }

        private void pictureBox8_MouseLeave(object sender, EventArgs e)
        {
            this.pictureBox8.Width = WIDTHBEFORE;
            this.pictureBox8.Height = HEIGHTBEFORE;
            this.pictureBox8.Location = new Point(135, 201);
        }

        private void pictureBox9_MouseLeave(object sender, EventArgs e)
        {
            this.pictureBox9.Width = WIDTHBEFORE;
            this.pictureBox9.Height = HEIGHTBEFORE;
            this.pictureBox9.Location = new Point(244, 201);
        }

        private void pictureBox10_MouseLeave(object sender, EventArgs e)
        {
            this.pictureBox10.Width = WIDTHBEFORE;
            this.pictureBox10.Height = HEIGHTBEFORE;
            this.pictureBox10.Location = new Point(20, 291);
        }

        private void pictureBox11_MouseLeave(object sender, EventArgs e)
        {
            this.pictureBox11.Width = WIDTHBEFORE;
            this.pictureBox11.Height = HEIGHTBEFORE;
            this.pictureBox11.Location = new Point(135, 291);
        }

        private void pictureBox12_MouseLeave(object sender, EventArgs e)
        {
            this.pictureBox12.Width = WIDTHBEFORE;
            this.pictureBox12.Height = HEIGHTBEFORE;
            this.pictureBox12.Location = new Point(244, 291);
        }

        private void pictureBox13_MouseLeave(object sender, EventArgs e)
        {
            this.pictureBox13.Width = WIDTHBEFORE;
            this.pictureBox13.Height = HEIGHTBEFORE;
            this.pictureBox13.Location = new Point(20, 383);
        }

        private void pictureBox14_MouseLeave(object sender, EventArgs e)
        {
            this.pictureBox14.Width = WIDTHBEFORE;
            this.pictureBox14.Height = HEIGHTBEFORE;
            this.pictureBox14.Location = new Point(135, 383);
        }

        private void pictureBox15_MouseLeave(object sender, EventArgs e)
        {
            this.pictureBox15.Width = WIDTHBEFORE;
            this.pictureBox15.Height = HEIGHTBEFORE;
            this.pictureBox15.Location = new Point(244, 383);
        }
        
        //Mouse Click
        private void pictureBox1_Click(object sender, EventArgs e)
        {
            player.Stream = Properties.Resources.a1;
            player.Play();
        }

        private void pictureBox2_Click(object sender, EventArgs e)
        {
            player.Stream = Properties.Resources.angel;
            player.Play();
        }

        private void pictureBox3_Click(object sender, EventArgs e)
        {
            player.Stream = Properties.Resources.actor;
            player.Play();
        }

       







        
    }
}
